package controllers;

import play.*;
import play.mvc.*;
import play.mvc.results.*;

import java.util.*;

import models.*;

public class Home extends Controller {

    public static void index() {
    	
    	User user = new User("vh@gmail.com", "123", "vh");
    	
        render(user);
    }
    
    public static void welcome(String age1)
    {    	
    	String text1 = "Hello world";
    	
    	if(Application.session.get("text1") != null)
    	{
    		text1 = Application.session.get("text1");
    	}
		
    	
    	render(text1);
    }
    
    public static void changeSession()
    {    	
    	Application.session.put("text1", "New text");
    	
    	renderText("Change session");
    }
    
    
    public static void post1(String myName)
    {
    	render(myName);
    }
    
}